package com.jeesite.modules.exam.score.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.entity.Page;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.exam.quota.entity.DcSupExamQuotaAdd;
import com.jeesite.modules.exam.quota.entity.DcSupExamSumQuotaInfo;
import com.jeesite.modules.exam.score.entity.DcSupExamOrgScore;
import com.jeesite.modules.exam.score.entity.DcSupExamScore;
import com.jeesite.modules.exam.score.entity.DcSupExamSumScore;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考核任务评分汇总表DAO接口
 * @author xhc
 * @version 2022-05-28
 */
@MyBatisDao
public interface DcSupExamSumScoreDao extends CrudDao<DcSupExamSumScore> {

    List<DcSupExamSumQuotaInfo> findDcSupExamSumScore(String examId, String exameOrg);

    List<DcSupExamQuotaAdd> findDcSupExamQuoatAdd(String examId, String exameOrg);

    void updateDcSUpExamSumScoreStatus(@Param("examId") String examId, @Param("exameOrg") String exameOrg);

    void updateDcSupExamSumScores(List<DcSupExamSumQuotaInfo> dcSupScoreList);

    List<DcSupExamQuotaAdd> findDcSUpExamMinuspointsQuotaInfo(String examId, String exameOrg);

    List<DcSupExamOrgScore> findUnitListData(DcSupExamOrgScore dcSupExamOrgScore);

    List<DcSupExamSumQuotaInfo> indexListData(DcSupExamSumQuotaInfo dcSupExamSumQuotaInfo);

    DcSupExamScore findDxExamScoreLimitOne(String examId, String exameOrg);

    List<String> findSumscoreAndQuotaAdd(String examId, String exameOrg);

    int deleteSumScoreByIds(List<String> ids);

    int deleteQuotaAddByIds(List<String> ids);

    int updateDcSUpExamSumScoreStatusOne(String examId, String exameOrg);

    int deleteQuotaScore(String examId, String exameOrg);
}